<?php 
	$paginatorParams = $this->Paginator->params();
	$totalViewed = ($paginatorParams['page'] - 1)*$paginatorParams['limit'] + $paginatorParams['current'];
	$remain = $paginatorParams['count'] - $totalViewed;
	$nextNum = ($remain >= $paginatorParams['limit']) ? $paginatorParams['limit'] : $remain;
?>
<?php if (!isset($showPage)):?>
	<div class="center_contents">
		<p>（<?php echo $totalViewed.'/'.$paginatorParams['count']?>）</p>
	</div>
<?php endif;?>
<?php if ($this->Paginator->hasPage(2)):?>
	<div>
		<table width="100%">
			<tr>
				<td>
				<?php
					if ($this->Paginator->hasPrev()) { 
						echo $this->Paginator->prev('<p style="float: left; display: block;">＜＜前の'.$paginatorParams['limit'].'件</p>',  array('escape' => false), null, array('class' => 'disable'));
					} 
				?></td>
				<td>
				<?php
					if ($this->Paginator->hasNext()) { 
						echo $this->Paginator->next('<p style="float: right; display: block;">次の'.$nextNum.'件＞＞</p>',  array('escape' => false), null, array('class' => 'disable'));
					}
				?></td>
			</tr>
		</table>
	</div>
<?php endif;?>